package cn.appinfo.service.appVersion;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.appinfo.dao.appVersion.AppVersionMapper;
import cn.appinfo.pojo.AppVersion;

@Service
public class AppVersionServiceImpl implements AppVersionService{
	@Resource
	private AppVersionMapper appVersionMapper;

	@Override
	public AppVersion getAppVersion(int id) {
		return appVersionMapper.getAppVersion(id);
	}

	@Override
	public List<AppVersion> getappVersionList(String id) {
		return appVersionMapper.getappVersionList(id);
	}

	@Override
	public boolean appsysadd(AppVersion appVersion) {
		if(appVersionMapper.appsysadd(appVersion)>0){
			return true;
		}
		return false;
	}

	@Override
	public boolean updateAPK(String id) {
		if(appVersionMapper.updateAPK(id)>0){
			return true;
		}
		return false;
	}

	@Override
	public boolean modify(AppVersion appVersion) {
		if(appVersionMapper.modify(appVersion)>0){
			return true;
		}
		return false;
	}

	@Override
	public boolean delAppId(String id) {
		if(appVersionMapper.delAppId(id)>0){
			return true;
		}
		return false;
	}
}
